package com.yf.tz.enums;

import lombok.Getter;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Jul 08 14:19:38 CST 2020
 */
@Getter
public enum MallGoodsShelfEnum {


                   NO(0,"下架")
                                    ,
                
            
                   YES(1,"上架")
                
                                ;
            
        
        int index;
        String value;

    MallGoodsShelfEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return MallGoodsShelfEnum.values()[idx].getValue();
    }

}
